﻿using System.Collections.Generic;

namespace Sinbiota.Web.Models
{
    public class CheckedItem
    {
        public int Id { get; set; }
        public bool IsChecked { get; set; }
        public string Name { get; set; }

        public CheckedItem(int id, bool isChecked, string name)
        {
            Id = id;
            IsChecked = isChecked;
            Name = name;
        }
    }
    public class CheckboxGroup
    {
        public string Name { get; set; }
        public IEnumerable<CheckedItem> CheckedItems { get; set; }

        public CheckboxGroup(string name, IEnumerable<CheckedItem> checkedItems)
        {
            Name = name;
            CheckedItems = checkedItems;
        }
    }
}